<%@ page import="com.yourpackage.UserDAO, java.util.List, com.yourpackage.User" %>
    <html>
    <head>
    <title>用户列表</title>
</head>
<body>
<h1>用户列表</h1>
<table border="1">
    <tr>
        <th>ID</th>
        <th>Name</th>
        <th>Email</th>
        <th>Country</th>
    </tr>
    <%
    UserDAO userDAO = new UserDAO();
    List<User> users = userDAO.selectAllUsers();
    for (User user : users) {
        %>
        <tr>
        <td><%= user.getId() %></td>
        <td><%= user.getName() %></td>
        <td><%= user.getEmail() %></td>
        <td><%= user.getCountry() %></td>
        </tr>
        <%
    }
    %>
</table>
</body>
</html>
